<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//this.setRemUnit()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			setRemUnit() {
			  const sysInfo = uni.getSystemInfoSync();
			  const width = sysInfo.windowWidth;
			  // 设计稿宽度（如 750px），1rem = 设计稿宽度 / 10
			  const rem = width / 7.5; // 750px 设计稿 → 1rem = 100px
			  console.log('1111111111sysInfo',sysInfo)
			  console.log('1111111111width',width)
			  console.log('11111111111rem',rem)
			  // 注入全局 CSS 变量
			  //document.documentElement.style.fontSize = `${rem}px`;
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
